package com.company.huisuo.biz.fragment

import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.company.huisuo.R
import com.company.huisuo.base.BaseFragment
import com.company.huisuo.biz.adapter.DanceFeedBackAdapter
import com.company.huisuo.databinding.FragmentFeedbackDanceBinding

/**
 * 反馈-舞蹈
 */
class FeedBackDanceFragment : BaseFragment<FragmentFeedbackDanceBinding>() {

    private val mAdapter by lazy {
        DanceFeedBackAdapter()
    }

    companion object {
        fun newInstance(): FeedBackDanceFragment{
            return FeedBackDanceFragment()
        }
    }

    override fun initView() {
        mBinding?.rcvList?.apply {
            layoutManager =
                LinearLayoutManager(requireActivity(), RecyclerView.HORIZONTAL, false)
            adapter = mAdapter
        }
    }

    override fun initData() {
        val list = arrayListOf<Int>()
        list.add(R.drawable.ic_dance_feedback_1)
        list.add(R.drawable.ic_dance_feedback_2)
        list.add(R.drawable.ic_dance_feedback_3)
        list.add(R.drawable.ic_dance_feedback_1)
        list.add(R.drawable.ic_dance_feedback_2)
        list.add(R.drawable.ic_dance_feedback_3)
        mAdapter.submitList(list)
    }
}